package com.su.test;

/**
 * @author Li
 * @Date 2023/4/7 15:06
 */
public class SumArray {
    public static void main(String[] args) {
        /**
         * 数组求和
         */
        int array[]={10,20,30,40,50};
        int sum=0;
        for (int i= 0;i<array.length;i++){
            sum +=array[i];
        }
        System.out.println(sum);
    }
}
